﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Scrobbler
{
    public class SongValidator
    {
        public static bool Validate(ISong song)
        {
            if (song == null) return false;
            if (string.IsNullOrEmpty(song.Artist)) return false;
            if (string.IsNullOrEmpty(song.Title)) return false;
            if (song.Duration == default(TimeSpan)) return false;
            if (song.TimeStarted == default(DateTime)) return false;

            return true;
        }
    }
}
